var db = {
    "video": {
        "categories": [{
            "id": 1344519992,
            "name": "Sub Category 1"
        }, {
            "id": 1344521000,
            "name": "Sub Category 2"
        }],
        "list": {
            "1344519992": [{
                "description": "you can add your descriptions here",
                "id": 1344520936,
                "category": 1344519992,
                "file_name": "screen6.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=CqFdDbLSNaM&feature=relmfu"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344520859,
                "category": 1344519992,
                "file_name": "screen5.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=xFEN7BQ7Zus&feature=related"
            }, {
                "description": "you can add your description here",
                "id": 1344520729,
                "category": 1344519992,
                "file_name": "screen4.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=UJ5kPZQ_LWU&feature=related"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344520622,
                "category": 1344519992,
                "file_name": "screen3.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=yNfpwdLVZ4c&feature=related"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344520527,
                "category": 1344519992,
                "file_name": "screen2.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=rwvmru5JmXk"
            }, {
                "description": "you can add your description here",
                "id": 1344520099,
                "category": 1344519992,
                "file_name": "screen.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=Eu3VDXQpfMU"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344520378,
                "category": 1344519992,
                "file_name": "screen1.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=9uBzMlbFfBQ&feature=related"
            }],
            "1344521000": [{
                "description": "you can add your descriptions here",
                "id": 1344521260,
                "category": 1344521000,
                "file_name": "screen7.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=4muhc_QUGcI&feature=related"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344521031,
                "category": 1344521000,
                "file_name": "screen.jpg",
                "video": "http:\/\/www.youtube.com\/watch?v=Eu3VDXQpfMU"
            }]
        }
    },
    "photo": {
        "categories": [{
            "id": 1344523249,
            "name": "Photo category 1"
        }, {
            "id": 1344523622,
            "name": "Photo category 2"
        }],
        "list": {
            "1344523249": [{
                "description": "you can add your description here",
                "id": 1344523444,
                "category": 1344523249,
                "file_name": "yay-2506895.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523375,
                "category": 1344523249,
                "file_name": "yay-1219959.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523323,
                "category": 1344523249,
                "file_name": "yay-981043.jpg"
            }, {
                "description": "you can add your descriptions here",
                "id": 1344523346,
                "category": 1344523249,
                "file_name": "yay-988909.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523360,
                "category": 1344523249,
                "file_name": "yay-1218423.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523283,
                "category": 1344523249,
                "file_name": "yay-794009.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523425,
                "category": 1344523249,
                "file_name": "yay-1852125.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523271,
                "category": 1344523249,
                "file_name": "yay-137302.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523587,
                "category": 1344523249,
                "file_name": "yay-332282.jpg"
            }],
            "1344523622": [{
                "description": "you can add your description here",
                "id": 1344523843,
                "category": 1344523622,
                "file_name": "yay-988909.jpg"
            }, {
                "description": "you can add your description here",
                "id": 1344523641,
                "category": 1344523622,
                "file_name": "yay-1219959.jpg"
            }]
        }
    }
};
mag_onload();